# from selenium import webdriver
#
#
# # 定义utils工具类
# class UtilsDriver:
#
#     _driver = None
#
#     # 定义一个获取驱动的方法
#     @classmethod
#     def get_driver(cls):
#         if cls._driver is None:
#             cls._driver = webdriver.Chrome()
#             cls._driver.get("http://127.0.0.1/index.php")
#         return cls._driver
#
#     # 退出浏览器驱动
#     @classmethod
#     def quit_driver(cls):
#         if cls._driver is not None:
#             cls._driver.quit()
#             cls._driver = None








